package com.xjx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xjx.pojo.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface BookMapper extends BaseMapper<Book> {
    @Update("UPDATE book SET deleted = 0 WHERE id = #{id} AND deleted = 1")
    int restoreById(Long id);
}